﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZR.Model;

namespace ImportPlcPointPosition.Models
{
    [SugarTable("cks_validation_field")]
    public class CksValidationField:BaseEntity
    {
        private bool isPrimary;
        private bool isResult;
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        public int BusinessType { get; set; } = 1;
        public int BusinessId {  get; set; }
        public string Notes { get; set; } = string.Empty;

        public int Sequence { get; set; } = 99;

        public int DataId { get; set; }
        public bool IsPrimary
        {
            get => isPrimary;
            set
            {
                isPrimary = value;
                OnPropertyChanged("IsPrimary");
            }
        }


        public bool IsResult
        {
            get => isResult;
            set
            {
                isResult = value;
                OnPropertyChanged("IsResult");
            }
        }

        public DateTime CreatedTime { get; set; } = DateTime.Now;

    }
}
